import request from '@/utils/request'

export function getDictionaryByGroup(params) {
    return request({
        url: '/dictionary/group',
        method: 'get',
        params
    })
}

export function getDictionary() {
    return request({
        url: '/dictionary',
        method: 'get'
    })
}

export function insertDictionary(data) {
    return request({
        url: '/dictionary',
        method: 'post',
        data
    })
}

export function updateDictionary(data) {
    return request({
        url: '/dictionary',
        method: 'put',
        data
    })
}

export function deleteDictionary(data) {
    return request({
        url: '/dictionary',
        method: 'delete',
        data
    })
}